<script setup lang="ts">

import CommonPurchaseSlot from "@/components/purchase/CommonPurchaseSlot.vue";
</script>

<template>
  <CommonPurchaseSlot slotTitle="添加视频"></CommonPurchaseSlot>
  <el-upload
      v-if="!upLoadSuccess"
      v-model:file-list="fileList"
      class="avatar-uploader"
      action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15"
      list-type="picture-card"
      multiple
      :on-success="handleAvatarSuccess"
      :on-error="handleAvatarError"
  >
    <img v-if="imageUrl" :src="imageUrl" class="avatar" />
    <el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon>
  </el-upload>

  <video height="200px" width="400px" autoplay src="https://www.bilibili.com/video/BV1iVxjebEke/?spm_id_from=333.1007.tianma.1-1-1.click&vd_source=f4b02532da07363502bf504128edead0"></video>
</template>

<style scoped lang="scss">

</style>
